/**************************************************************************************************
 *                                                                          
 * Copyright (c) 2004 - 2007 Winbond Electronics Corp. All rights reserved.      
 *                                                                         
 * FILENAME
 *     I2S.h
 *
 * VERSION
 *     1.0
 *
 * DESCRIPTION
 *     This file contains the register map of IIS audio interface
 *
 * HISTORY
 *     02/09/2004		 Ver 1.0 Created by PC31 SJLu
 *
 * REMARK
 *     None
 *     
 *************************************************************************************************/
#ifndef _I2S_H_
#define _I2S_H_

/*----- bit definition of REG_ACTL_IISCON register -----*/
#define I2S					0x0
#define MSB_Justified		0x0008
#define SCALE_1				0x0
#define SCALE_2				0x10000
#define SCALE_3				0x20000
#define SCALE_4				0x30000
#define SCALE_5				0x40000
#define SCALE_6				0x50000
#define SCALE_7				0x60000
#define SCALE_8				0x70000
#define SCALE_10			0x90000
#define SCALE_12			0xB0000
#define SCALE_14			0xD0000
#define SCALE_16			0xF0000
#define FS48				0x20
#define FS32				0x0
#define BCLK_MCLKDIV8		0x00
#define BCLK_MCLKDIV12		0x40

#define MSB_FORMAT	1
#define I2S_FORMAT  2

extern UINT8 g_I2SAudioFormat;//default data format

//INT  uda1345tsSetPlayVolume(UINT32 uVolume);
//#endif
//#ifdef HAVE_I2S_UDA1345
#endif	/* _I2S_H_ */


